package com.dxy.chatserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@SpringBootApplication
@ConfigurationPropertiesScan
public class MongoTotableApplication {


    /**
     * ps -ef |grep es-msg
     * nohup java -Xmx500m -Xmn250m -Xms250m -jar es-msg.jar --spring.profiles.active=develop -Dspring.config.location=application-develop.yml --server.port=10590 > /dev/null 2>&1 &
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(MongoTotableApplication.class, args);
    }

    @Bean
    public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
        PropertySourcesPlaceholderConfigurer c = new PropertySourcesPlaceholderConfigurer();
        c.setIgnoreUnresolvablePlaceholders(true);
        return c;

    }
}
